/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ceair.flight.refund.service.notification.impl;

import com.ceair.muservice.common.enums.message.TemplateNameEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author youguilin
 */
@Service("emailNotification")
class EmailNotification extends AbstractNotification {

    private static final Logger LOG = LoggerFactory.getLogger(EmailNotification.class);

    private static final String EN_US = "en_US";

    private final Map<String, Object> constantEmailArgs = new HashMap<>(3);

    @PostConstruct
    void inital() {
        //email constants
        constantEmailArgs.put(SITE, EN_US);
    }

    @Override
    Map<String, Object> getDefaultValue(Map args) {
        return constantEmailArgs;
    }

    TemplateNameEnum getTemplateName(Map args) {
        return TemplateNameEnum.SIMPLE_MAIL;
    }

}
